home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_03 / allison / sysmac.c < prev    next >
C/C++ Source or Header  |  1994-01-05  |  467b  |  25 lines

  1.  
  2. LISTING 1 -
  3. Prints the Pre-defined Macros /* sysmac.c:    Print system macros */
  4.  
  5. #include <stdio.h>
  6.  
  7. main()
  8. {
  9.     printf("__DATE__ == %s\n",__DATE__);
  10.     printf("__FILE__ == %s\n",__FILE__);
  11.     printf("__LINE__ == %d\n",__LINE__);
  12.     printf("__TIME__ == %s\n",__TIME__);
  13.     printf("__STDC__ == %d\n",__STDC__);
  14.     return 0;
  15. }
  16.  
  17. /* Output:
  18. __DATE__ == Dec 18 1993
  19. __FILE__ == sysmac.c
  20. __LINE__ == 9
  21. __TIME__ == 19:05:06
  22. __STDC__ == 1
  23. */
  24.  
  25.